/**
 * @author NBao
 */
$(document).ready(function() {
	$("#change_pass_form").dialog({
		width: 400,
		resizable : false,
		autoOpen : false
	});
	
	$(".change_pass_cls").click(function(){
		$('#change_pass_form').dialog('open');
	});
	
	var options = { 
	    //target:     '#change_pass_dialog',
	    dataType : 'json',
	    success:    function(responseContent) { 
	        alert(responseContent.message);
	        //$("#dialog").dialog('close');
	    } 
	};
	
	$('#changeUserPassword').ajaxForm(options);
});